import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const todolistall = () => import("../components/todoList.vue");
const overList = () => import("../components/overList.vue");
const outList = () => import("../components/outList.vue");

const routes = [
  { path: "/", redirect: "/all" },
  {
    path: "/all",
    component: todolistall,
  },
  {
    path: "/over",
    component: overList,
  },
  {
    path: "/out",
    component: outList,
  },
];
const router = new VueRouter({
  routes,
});
export default router;
